package com.zgd.controller;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zgd.service.TestService;

@Controller
@RequestMapping("/test")
public class TestController {

	@Resource(name="tService")
	private TestService testService;
	
	@RequestMapping(value="hello")
	public String hello(){
		List<Map<String, Object>> queryAll = testService.queryAll();
		System.out.println(queryAll);
		return "/index.jsp";
	}
}
